app.service("specificationService",function ($http) {
    this.findPage = function (page,rows,specification) {
        return $http.post("/specification/findPage.do?page="+page+"&rows="+rows,specification);
    }
    this.save = function (entity) {
        return $http.post("/specification/save.do" , entity);
    }
    this.findOne = function (id) {
        return $http.get("/specification/findOne.do?id="+id);
    }
    this.update = function (entity) {
        return $http.post("/specification/update.do",entity);
    }
    this.dele = function (ids) {
        return $http.post("/specification/dele.do?ids="+ids);
    }
    this.findSpecList = function () {
        return $http.get("/specification/findSpecList.do");
    }
});